<template>
	<view>
		<view style="margin-top: 50px;">
			<van-button type="primary" open-type="openSetting" @opensetting="onOpenSetting" :color="primaryColor" block>打开定位权限</van-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				primaryColor: getApp().globalData.primaryColor,
				type:''
			};
		},
		onLoad(options) {
			this.type = options.type
		},
		methods:{
			onOpenSetting(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
